export const filterArray = (...arg) => {
    let arr
    let array = arg[0]//传入的数组
    let starIdx = arg[1]//开始索引值
    let lastIdx = arg[2]//结束索引值

    if (arg.length === 2) {
        arr = array.slice(0, starIdx)
    } else {
        arr = array.slice(starIdx, lastIdx)
    }
    return arr
}